/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bo;

import beans.Servico;
import dao.ServicoDAO;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author Thiago
 */
public class ServicoBO {

    public Servico recuperarServico(int id) throws SQLException {
        return new ServicoDAO().recuperarServico(id);
    }
    
    public Servico recuperarServico(String descricao) throws SQLException {
        return new ServicoDAO().recuperarServico(descricao);
    }

    public ArrayList<Servico> recuperarServicos(Servico servico) throws SQLException {
        return new ServicoDAO().recuperarServicos(servico);
    }

}